<?php $this->_extends('../_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/validator.js"></script>
<form method="post" action="<?=url('Online::EbayTemplate/TemplateCreateSave')?>" onsubmit="return Validator.Validate(this,3);">
<table class="form_table" width="100%">
<tr>
	<th>模板名称</th>
	<td><input type="text" name="name" dataType="Require" msg=" 名称不能为空" /></td>
</tr>
<tr>
	<th>所属基板</th>
	<td>
		<select name="base_id" dataType="Require" msg=" 请选择所属基板" >
			<?foreach ($base as $b):?>
			<option value="<?=$b['id']?>"><?=$b['name']?></option>
			<?endforeach;?>
		</select>
	</td>
</tr>
<tr>
	<th>所属店铺</th>
	<td>
		<select name="shop_id" dataType="Require" msg=" 请选择所属店铺" >
			<?foreach ($shop as $s):?>
			<option value="<?=$s['id']?>"><?=$s['name']?></option>
			<?endforeach;?>
		</select>
	</td>
</tr>
<tr>
	<th>模板样式</th>
	<td><textarea name="css" cols="80" rows="18"></textarea></td>
</tr>
<tr>
	<th><input type="hidden" name="<?=Q::ini('unique_token_name');?>" value="<?=Helper_BSS_Normal::genToken();?>"/></th>
	<td><input type="submit" class="button" value="提交" /></td>
</tr>
</table>
</form>
<?php $this->_endblock();?>